home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / newsgroups / misc.19970626-19970929 / 000352_news@newsmaster….columbia.edu _Mon Sep 15 12:03:21 1997.msg < prev    next >
Internet Message Format  |  2020-01-01  |  2KB

  1. Return-Path: <news@newsmaster.cc.columbia.edu>
  2. Received: from newsmaster.cc.columbia.edu (newsmaster.cc.columbia.edu [128.59.35.30])
  3.     by watsun.cc.columbia.edu (8.8.5/8.8.5) with ESMTP id MAA24726
  4.     for <kermit.misc@watsun.cc.columbia.edu>; Mon, 15 Sep 1997 12:03:20 -0400 (EDT)
  5. Received: (from news@localhost)
  6.     by newsmaster.cc.columbia.edu (8.8.5/8.8.5) id MAA24467
  7.     for kermit.misc@watsun; Mon, 15 Sep 1997 12:03:19 -0400 (EDT)
  8. Path: news.columbia.edu!watsun.cc.columbia.edu!fdc
  9. From: fdc@watsun.cc.columbia.edu (Frank da Cruz)
  10. Newsgroups: comp.protocols.kermit.misc
  11. Subject: Re: Swich
  12. Date: 15 Sep 1997 16:03:17 GMT
  13. Organization: Columbia University
  14. Lines: 43
  15. Message-ID: <5vjm85$8fo$1@apakabar.cc.columbia.edu>
  16. References: <341A6FFB.54F764F7@free.xtel.com>
  17. NNTP-Posting-Host: watsun.cc.columbia.edu
  18. Xref: news.columbia.edu comp.protocols.kermit.misc:7675
  19.  
  20. In article <341A6FFB.54F764F7@free.xtel.com>,
  21. Seongsu Lee  <seongsu@free.xtel.com> wrote:
  22. : Hi,
  23. : After connecting to a system through the c-kermit...
  24. : When I output the chracter "wh ABC" to remove system,
  25. : it send me
  26. : "
  27. : ID ABC is not on server
  28. : >>
  29. : "
  30. : or
  31. : "
  32. : ID ABC is on server
  33. : >>
  34. : "
  35. : So, I want to hangup and quit when ABC is not on server.
  36. : But I want to run other c-kermit script whn ABC is on server.
  37. : How can I construct the script??
  38. : I don't know how to input the data when the data is consist with
  39. : more than 2 lines.. (Thanks for reading. I'm not good at Eng)
  40. I already replied to essentially the same question by email, but for
  41. the record...
  42.  
  43. This is a perfectly straightforward use of the script language, which is
  44. documented in chapters 17-19 of "Using C-Kermit":
  45.  
  46.   http://www.columbia.edu/kermit/ck60.html
  47.  
  48. Very briefly, your script would look something like this:
  49.  
  50. output {wh Goodbye\10}
  51. minput 30 {ID(Goodbye)is not on server now} {ID(Goodbye) is in chat room now}
  52. switch \v(minput) {
  53.   :0, stop 1 No response from host
  54.   :1, hangup, quit
  55.   :2, take pager.s
  56. }
  57.  
  58. - Frank